<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="java.util.Map"%>
<%@ page import="java.util.HashMap"%>
<%@ page import="org.apache.commons.lang3.StringUtils"%>
<%@ page import="com.ce.util.DictUtil"%>
<%@ page import="com.ce.util.RegeditUtil"%>
<%@ taglib uri="/tags/ce" prefix="ce" %>
<%@page import="com.ce.framework.constants.WebConstants"%>
<%@page import="com.ce.sys.login.model.User"%>
<%
String contextPath = request.getContextPath();

Map<String, Cookie> cookieMap = new HashMap<String, Cookie>();
Cookie[] cookies = request.getCookies();
if (null != cookies) {
	for (Cookie cookie : cookies) {
		cookieMap.put(cookie.getName(), cookie);
	}
}
String easyuiTheme = "bootstrap";//指定如果用户未选择样式，那么初始化一个默认样式
if (cookieMap.containsKey("easyuiTheme")) {
	Cookie cookie = (Cookie) cookieMap.get("easyuiTheme");
	easyuiTheme = cookie.getValue();
}

int rows = 20;
try{
	rows = User.getUser().getRegeditIntValue(WebConstants.ROWS_PER_PAGE);
	if(rows<1){
		rows = 20;
	}
}catch(Throwable e){
}

%>
<%--
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/themes/default/csmis.css"><!-- 自定义样式 -->
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/jquery-easyui-1.2/themes/default/easyui.css"><!-- easyui默认样式 -->
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/jquery-easyui-1.2/themes/icon.css"><!-- easyui默认图标 -->
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/jquery-plugin/jquery-notice.css"><!-- 提示信息样式 -->
 --%>




<%-- 引入jQuery --%>

<%
String User_Agent = request.getHeader("User-Agent");
if (StringUtils.indexOfIgnoreCase(User_Agent, "MSIE") > -1 && (StringUtils.indexOfIgnoreCase(User_Agent, "MSIE 6") > -1 || StringUtils.indexOfIgnoreCase(User_Agent, "MSIE 7") > -1 || StringUtils.indexOfIgnoreCase(User_Agent, "MSIE 8") > -1)) {
%>
<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-1.9.1.js" charset="utf-8"></script>
<link id="easyuiTheme" rel="stylesheet" href="<%=contextPath%>/jslib/jquery-easyui-1.3.2/themes/<%=easyuiTheme%>/easyui.css" type="text/css">
<link rel="stylesheet" href="<%=contextPath%>/jslib/jquery-easyui-1.3.2/themes/icon.css" type="text/css"> 
<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-easyui-1.3.2/jquery.easyui.min.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-easyui-1.3.2/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
<%
} else {
	%>
	<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-2.0.3.js" charset="utf-8"></script>
	<link id="easyuiTheme" rel="stylesheet" href="<%=contextPath%>/jslib/jquery-easyui-1.3.4/themes/<%=easyuiTheme%>/easyui.css" type="text/css">
	<link rel="stylesheet" href="<%=contextPath%>/jslib/jquery-easyui-1.3.4/themes/icon.css" type="text/css"> 
	<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-easyui-1.3.4/jquery.easyui.min.js" charset="utf-8"></script>
	<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-easyui-1.3.4/locale/easyui-lang-zh_CN.js" charset="utf-8"></script>
	<%
}
%>

<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/css/themes/default/csmis.css"><!-- 自定义样式 -->
<link rel="stylesheet" type="text/css" href="<%=request.getContextPath() %>/js/jquery-plugin/jquery-notice.css"><!-- 提示信息样式 -->
<script src="<%=contextPath%>/jslib/syExtJquery.js" type="text/javascript" charset="utf-8"></script>
<script src="<%=contextPath%>/jslib/syExtEasyUI.js" type="text/javascript" charset="utf-8"></script>
<%-- 引入EasyUI --%>
<link rel="stylesheet" href="<%=contextPath%>/extIcon/syExtCss.css" type="text/css">
<link rel="stylesheet" href="<%=contextPath%>/extIcon/syExtIcon.css" type="text/css">
<%-- 引入EasyUI Portal插件 --%>
<link rel="stylesheet" href="<%=contextPath%>/jslib/jquery-easyui-portal/portal.css" type="text/css">
<script type="text/javascript" src="<%=contextPath%>/jslib/jquery-easyui-portal/jquery.portal.js" charset="utf-8"></script>
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-plugin/jquery-migrate-1.2.1.min.js"></script>  <!-- jquery 降级插件 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-plugin/jquery.cookie.js"></script>  <!-- jquery cookie -->
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/jquery-plugin/jquery-util.js"></script>  <!-- 通用工具类 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/xheditor-1.2.1/xheditor-1.2.1.min.js"></script> 
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/xheditor-1.2.1/xheditor_lang/zh-cn.js"></script>

<script src="<%=contextPath%>/jslib/syExtJavascript.js" type="text/javascript" charset="utf-8"></script>

<%--
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-easyui-1.2/jquery-1.4.2.min.wt.js"></script> <!-- jquery框架 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-easyui-1.2/jquery.easyui.min.js"></script>   <!-- easyui框架 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-easyui-1.2/locale/easyui-lang-zh_CN.js"></script> <!-- 中文信息加载 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/js/jquery-plugin/jquery-util.js"></script>  <!-- 通用工具类 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/js/xheditor/xheditor-zh-cn.min.js"></script> 
 --%>
<script type="text/javascript">
//默认的表格属性
window.defaultDataGrid = {
    titleFocus:true,  //控制标题是否显示
	collapsible:false, //表格折叠-默认为ture
	pageSize:<%=rows%>,
	pageList:[<%=com.ce.util.RegeditUtil.getRegeditStringValue(com.ce.util.RegeditUtil.SYSTEM_PAGE_LIST) %>],//分页显示下标
	pagination:true,   //显示分页
	rownumbers:true,   //显示行号
	remoteSort: true,  //启用后台排序
	striped:true,      //显示分割线
	fit:true,          //宽高自动适应外部容器
	nowrap:false,      //超过宽度自动换行
	//加载数据失败的处理        
    onLoadError: function () {    
        $.messager.alert('消息提示','查询数据为空，请更换查询条件！','error');
    },
    onClickRow:function(rowIndex, rowData){
		viewItem(rowData.vcId);
	}
};
</script>
<script type="text/javascript" src="<%=request.getContextPath() %>/js/search.js"></script>  <!-- easyui组件的自定义通用默认属性 -->
<script type="text/javascript" src="<%=request.getContextPath() %>/jslib/default_easyui_property.js"></script>  <!-- easyui组件的自定义通用默认属性 -->